﻿using System;
using Microsoft.SPOT;
using Gadgeteer.Modules.GHIElectronics;
using Gadgeteer.Interfaces.Led;

namespace Gadgeteer.Interfaces.GHI.Led
{
    internal class MulticolorLedWrapper : IMultiColorLed
    {
        private readonly MulticolorLed led;
        public MulticolorLedWrapper(MulticolorLed led)
        {
            this.led = led;
        }

        public void TurnBlue()
        {
            led.TurnBlue();
        }

        public void TurnGreen()
        {
            led.TurnGreen();
        }

        public void TurnRed()
        {
            led.TurnRed();
        }

        public void TurnWhite()
        {
            led.TurnWhite();
        }

        public void TurnColor(Color color)
        {
            led.TurnColor(color);
        }

        public void TurnOff()
        {
            led.TurnOff();
        }
    }
}
